package org.csmz.xg2333;

public class Pet {
    public String type;
    public int age;
    public boolean vaccinum = false;

    public void srtType(String type){
        this.type = type;
    }
    public void setAge(int age){
        this.age = age;
    }
    public void setVaccinum(boolean health){
        vaccinum = health;
    }
    public String getType(){
        System.out.println("猫的类型为："+type);
        return type;
    }
    public int grtAge(){
        System.out.println("猫的年龄为："+type);
        return age;
    }
    public boolean getHealth(){
        if ((vaccinum)) {
            System.out.println("猫已接种疫苗");
        } else {
            System.out.println("猫未接种疫苗");
        }
        return vaccinum;
    }
}
